﻿using System;
using System.Configuration;

namespace PortalIntranet.InternalComponents.Configuration
{
	public class AppSettings
	{
		public static string Name
		{
			get
			{
				return ConfigurationManager.AppSettings["Application.Name"];
			}
		}

		public static string UrlBase
		{
			get
			{
				return ConfigurationManager.AppSettings["Application.Url"];
			}
		}

		public static string UrlHome
		{
			get
			{
				return string.Format("{0}/Home", ConfigurationManager.AppSettings["Application.Url"]);
			}
		}

		public static string UrlLogin
		{
			get
			{
				return string.Format("{0}/Login", ConfigurationManager.AppSettings["Application.Url"]);
			}
		}

		public static string UrlError404
		{
			get
			{
				return string.Format("{0}/Error404", ConfigurationManager.AppSettings["Application.Url"]);
			}
		}

		public static string TemporaryFiles
		{
			get
			{
				return "~/Temp";
			}
		}

		public static string Directory
		{
			get
			{
				return ConfigurationManager.AppSettings["Application.Directory"];
			}
		}

		public static string AuthCookieName
		{
			get
			{
				return "PortalIntranet.Cookie.Authorization";
			}
		}

		public static string AuthCacheName
		{
			get
			{
				return "PortalIntranet.Cache.Authorization";
			}
		}

		public static string PartialViewBase
		{
			get
			{
				return "../WebParts/WebPart";
			}
		}
	}
}
